//
//  SWPopverController.swift
//  MYSwiftWeiBo
//
//  Created by shingwai chan on 16/3/2.
//  Copyright © 2016年 ChanShingWai. All rights reserved.
//

import UIKit

class SWPopverController: UITableViewController {

    let date = ["首页","好友圈","微博群","我的微博"]
    
    let ID = "Cell"
    override func viewDidLoad() {
        super.viewDidLoad()
        tableView.registerClass(UITableViewCell.self, forCellReuseIdentifier: ID)
    }
    
    
    override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return date.count
    }
    
    override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        
        let cell = tableView.dequeueReusableCellWithIdentifier(ID, forIndexPath: indexPath)
        
        cell.textLabel?.text = date[indexPath.row]
        
        return cell
    }
}
